package fire.chacracter;

import java.util.Random;

import fire.Main;
import fire.pet.Pet;

public class Enemy extends Character {
	public Enemy(String name, double x, double y, int collisionid,
			String gfxname, double speed) {
		super(name, x, y, collisionid, gfxname, speed);
//		Random rd = new Random();
//		int index = rd.nextInt(this.petList.size());
//		this.petList.get(index);
	}

	public Pet choosePet() {
		Random rd = new Random();
		int index = rd.nextInt(this.petList.size());
		return this.petList.get(index);
	}

	@Override
	public void move() {
		if (checkCollision(9999, 0, 0) == 9999) {
			Main.combat(this);
		}
	}
}
